package com.yqg.protection.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * record_accept 实体类
 *
 * @author 小宇
 * @since 2024-09-13
 */
@Getter
@Setter
@TableName("record_accept")
@ApiModel(value = "RecordAccept对象", description = "受理记录")
public class RecordAccept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", index = 0)
    @ApiModelProperty("自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "单位ID", index = 1)
    @ApiModelProperty("单位Id")
    private Long clientId;

    @ExcelProperty(value = "单位名称", index = 2)
    @TableField(exist = false)
    @ApiModelProperty("单位名称")
    private String clientName;

    @ExcelProperty(value = "受理人姓名", index = 3)
    @ApiModelProperty("受理人姓名")
    private String accepterName;

    @ExcelProperty(value = "信息描述", index = 4)
    @ApiModelProperty("信息描述")
    private String descrabe;

    @ExcelProperty(value = "处理时间", index = 5, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("处理时间")
    private LocalDateTime dataTime;

    @ExcelProperty(value = "处理结果", index = 6)
    @ApiModelProperty("处理结果")
    private String result;

    @ExcelProperty(value = "图片", index = 7)
    @ApiModelProperty("图片")
    private String photo;

    @ExcelIgnore
    private Integer isDelete;
}
